package org.wxf.action;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class CommAction
 */
@WebServlet("/jump")
public class CommAction extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * @see HttpServlet#service(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// 获取跳转页面的连接url内容
		String strUrl = request.getParameter("p");
		// 添加目标页面的后缀
		strUrl += ".jsp";

		// 转发到目标页面
		request.getRequestDispatcher(strUrl).forward(request, response);
		
		
	}

}
